﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace EncuentraWEB
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void imgBtnAceptar_Click(object sender, ImageClickEventArgs e)
        {
            if (txtUsuario.Text=="admin" && txtContrasenia.Text=="admin")
            {
                
                Session.Add("User", txtUsuario.Text);
                Response.Redirect("~\\Principal.aspx");
              
            }
        }
    }
}
